<extend name="layout:index"/>

<block name="content">
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
		<span><i class="icon-table"></i>管理中心-会员帐户变动明细</span>
	</div>
	<div class="mws-panel-body no-padding">
		<div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
			<div style="color:skyblue">
				　当前会员:{$user_name}
				　现金积分:{$res.money1}　注册积分:{$res.money2}　商城积分:{$res.money4}　E积分:{$res.potion_num}　慈善积分:{$res.cishan_money}　动态奖扣税:{$res.dtks}<br>
				　销售奖:{$res.points1}　平衡奖:{$res.points2}　管理奖:{$res.points3}　交易奖:{$res.points4}　服务奖:{$res.points5} 
			</div>

					<div style="margin-left:10px;"><button id="tiaojie" class="btn btn-danger">调节会员账户</button></div>
				<br>
			<table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
			    <thead>
			        <tr role="row">
				        <th role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 187px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">编号
				        </th>
				        <th role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 249px;" aria-label="Browser: activate to sort column ascending">账户变动时间
				        </th>
				        <th role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 233px;" aria-label="Platform(s): activate to sort column ascending">账户变动原因
				        </th>
				        <th role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 162px;" aria-label="Engine version: activate to sort column ascending">积分
				        </th>
				        <th role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 118px;" aria-label="CSS grade: activate to sort column ascending">奖金
				        </th>
				        <th role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 118px;" aria-label="CSS grade: activate to sort column ascending">E积分
				        </th>
				        <th role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 118px;" aria-label="CSS grade: activate to sort column ascending">发生会员
				        </th>
			        </tr>
			    </thead>
				<tbody role="alert" aria-live="polite" aria-relevant="all">
					<volist name="res1" id="vo">
						<tr class="odd">
					            <td class="">{$vo.log_id}</td>
					            <td class=" ">{:date('Y-m-d H:i:s',$vo['change_time'])}</td>
					           	<td class=" ">{$vo.change_desc}</td>
					            <td class=" ">
					            	现金积分：
					            		<if condition="$vo.user_money1 gt 0">
											<span style="color:blue;">+{$vo.user_money1}</span>
					            		<elseif condition="$vo.user_money1 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.user_money1}</span>
					            		</if>
					            		<br>
					            	注册积分：
										<if condition="$vo.user_money2 gt 0">
											<span style="color:blue;">+{$vo.user_money2}</span>
					            		<elseif condition="$vo.user_money2 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.user_money2}</span>
					            		</if>
					            		<br>
					            	认购积分：
										<if condition="$vo.user_money3 gt 0">
											<span style="color:blue;">+{$vo.user_money3}</span>
					            		<elseif condition="$vo.user_money3 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.user_money3}</span>
					            		</if>
					            		<br>
					            	商城积分：
										<if condition="$vo.user_money4 gt 0">
											<span style="color:blue;">+{$vo.user_money4}</span>
					            		<elseif condition="$vo.user_money4 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.user_money4}</span>
					            		</if>
					            		<br>
					            	慈善积分：
										<if condition="$vo.cishan_money gt 0">
											<span style="color:blue;">+{$vo.cishan_money}</span>
					            		<elseif condition="$vo.cishan_money eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.cishan_money}</span>
					            		</if>
					            	<br>
					            	动态扣税：
										<if condition="$vo.dongtaikoushui_money gt 0">
											<span style="color:blue;">+{$vo.dongtaikoushui_money}</span>
					            		<elseif condition="$vo.dongtaikoushui_money eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.dongtaikoushui_money}</span>
					            		</if>
					            	<br>
					            	</td>
					            <td class=" ">
					            	销售奖：
										<if condition="$vo.pay_points1 gt 0">
											<span style="color:blue;">+{$vo.pay_points1}</span>
					            		<elseif condition="$vo.pay_points1 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.pay_points1}</span>
					            		</if>
					            		<br>
					            	平衡奖：
										<if condition="$vo.pay_points2 gt 0">
											<span style="color:blue;">+{$vo.pay_points2}</span>
					            		<elseif condition="$vo.pay_points2 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.pay_points2}</span>
					            		</if>
					            		<br>
					            	管理奖：
										<if condition="$vo.pay_points3 gt 0">
											<span style="color:blue;">+{$vo.pay_points3}</span>
					            		<elseif condition="$vo.pay_points3 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.pay_points3}</span>
					            		</if>
					            		<br>
					            	交易奖：
										<if condition="$vo.pay_points4 gt 0">
											<span style="color:blue;">+{$vo.pay_points4}</span>
					            		<elseif condition="$vo.pay_points4 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.pay_points4}</span>
					            		</if>
					            		<br>
					            	服务奖：
										<if condition="$vo.pay_points5 gt 0">
											<span style="color:blue;">+{$vo.pay_points5}</span>
					            		<elseif condition="$vo.pay_points5 eq 0"/>
											<span>0</span>
					            		<else/>
											<span style="color:red">{$vo.pay_points5}</span>
					            		</if>
					            		<br>
					            </td>
					            <td class=" ">{$vo.option_num}</td>
					            <td class=" ">{$vo.about_user_name}</td>
					        </tr>
					    </volist>
			        </tbody>
			</table>
			<div class="dataTables_info" id="DataTables_Table_1_info"></div>
			<div class="dataTables_paginate paging_full_numbers" id="DataTables_Table_1_paginate">
				
			</div>
		</div>
    </div>
</div>

<script>
	$('#tiaojie').click(function(){
		window.location.href = '/admin/user/tiaojie?user_id={$user_id}&user_name={$user_name}';
	});
</script>
</block>